package top.sdwu_top.kbase.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import io.swagger.models.auth.In;
import top.sdwu_top.kbase.entity.KbaseFileVersion;
import com.baomidou.mybatisplus.extension.service.IService;
import top.sdwu_top.kbase.vo.KbaseFileVersionVo;

/**
 * <p>
 * 文件版本 服务类
 * </p>
 *
 * @author zhipeng.duan@nvr-china.com
 * @since 2020-02-20
 */
public interface IKbaseFileVersionService extends IService<KbaseFileVersion> {

    KbaseFileVersion getLastOne(String fileId);

    Integer getLastVersion(String fileId);

    KbaseFileVersion getByFileIdAndVersion(String fileId, Integer version);

    Page<KbaseFileVersion> page(KbaseFileVersionVo vo);
}
